<!-- 通用 CSS -->
<head th:fragment=header(title) xmlns:th="http://www.thymeleaf.org">
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="" name="keywords">
    <meta content="" name="description">
    <title th:text="${title}"></title>
    <link rel="stylesheet" th:href="@{/component/pear/css/pear.css}">
    <style>
         .layui-upload-img {
            width: 92px;
            height: 92px;
        }
        .layui-form-label{
            width:160px;
            color:#515a6e;
        }
    </style>
</head>

<!-- 通用 JAVASCRIPT -->
<div th:fragment="footer" xmlns:th="http://www.thymeleaf.org">

    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/component/pear/pear.js}"></script>
    <script th:src="@{/admin/js/jquery.min.js}"></script>

    <! --- 编辑器初始化--->
    <!-- 引入 css -->
    <link href="https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">

    <!-- 引入 js -->
    <script src="https://unpkg.com/@wangeditor/editor@latest/dist/index.js"></script>
    <style>
      #editor—wrapper {
        border: 1px solid #ccc;
        z-index: 100; /* 按需定义 */
      }
      #toolbar-container { border-bottom: 1px solid #ccc; }
      #editor-container { height: 400px; }
    </style>
</div>

<!-- 图片上传组件 -->
<div th:fragment="imgUploder(labelTitle)" xmlns:th="http://www.thymeleaf.org">
<button type="button" class="layui-btn" id="ID-upload-demo-btn">
    <i class="layui-icon layui-icon-upload"></i> <span th:text="${labelTitle}"></span>
</button>
<div style="width: 132px;">
    <div class="layui-upload-list">
        <input type="hidden" name="app_logo" id="thumb-input" th:value="${info.app_logo}">
        <img class="layui-upload-img" th:src="${info.app_logo}" id="ID-upload-demo-img" style="width: 100%; height: 92px;">
        <div id="ID-upload-demo-text"></div>
    </div>
</div>
</div>

